@charset "utf-8";
@mixin clearfix() {
    &:before,
    &:after {
        content: "";
        display: table;
    }
    &:after {
        clear: both;
    }
}
a {
    color: black
}
.lpkcart{
    
    height: 100vh;
    background-color:rgb(243, 240, 240);
    .toubu{
        position: fixed;
        width: 100%;
        height: 12%;
        z-index: 10;
    }
    .van-nav-bar{
        // position: fixed;
        top: 0;
        height: 50%;
        ::v-deep .van-icon {
           color: black; 
        }
        ::v-deep .van-nav-bar__content{
            div{
                color: rgb(14, 13, 13);
                font-weight: bold;
                span{
                    color:rgb(14, 13, 13);
                    font-weight: normal;
                }
            }
            .van-nav-bar__right{
                // width: 80%;
                // background-color: pink;
            }
        }
    }
 
    .showmore {
        width: 25%;
        height: 140px;
        background-color: #fff;
        box-shadow: -1px 1px 3px #ccc;
        border-radius: 7px;
        position: absolute;
        z-index: 20;
        right: 0;
        top: 6%;
        padding: 10px 10px;
        box-sizing: border-box;
        .sj{
            width: 0;
            height: 0;
            border: 8px solid orange;
            border-color: transparent transparent rgb(241, 238, 238);
            position: absolute;
            top: -15px;
            right: 15px; 
        }
        ul{
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            li{
                display: inline-block;
                height: 30px;
                line-height: 20px;
                .van-icon {
                    height: 100%;
                    line-height: 25px;
                    vertical-align: middle;
                }
              
            }
        }
    }
    .in{
        width: 100%;
        height: 12%;
        }
    // 订单
    .cart{
        width: 100%;
        height: 80%;
        overflow-y: scroll;
    }
    .cart-item{
        width: 95%;
        height: 30%;
        margin: 10px auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #fff;
        position: relative;
        border-radius: 7px;
        padding: 5px;
        box-sizing: border-box;
        .item-1{
            display: flex;
            flex-direction: row nowrap;
            &>button{
                position: absolute;
                top: 0;
                right: 5px;
                font-size: 18px;
                color: #ccc;
                border: 0;
                background-color: rgba(0,0,0,0);
            }
            /*选定前*/
            input[name="button"]+label::before {
                /*设置label标签的伪元素*/
                content: "\a0";
                /*不换行空格*/
                display: inline-block;
                width: 20px;
                height: 20px;
                color: #fff;
                font-size: 14px;
                border-radius: 50%;
                border: 1px solid rgb(219, 216, 216);
            }

            /*选定时*/
            input[name="button"]:checked+label::before {
                content: "\2714";
                /*√*/
                text-align: center;
                border-radius: 50%;
                background-color: rgb(240, 53, 53);
            }
            /*取消默认框*/
            input[name="button"] {
                display: none;
            }
            .item-img{
                position: absolute;
                top: 10px;
                left: 30px;
                width: 40%;
                height: 70%;
                overflow: hidden;
                border-radius: 10px;
                img{
                    width: 90%;
                    margin: 0 auto;
                }
            }
            .item-text{
                position: absolute;
                width: 50%;
                top: 15px;
                right: 10px;
                font-size: 14px;
                line-height: 20px;
                span{
                    font-size: 18px;
                    color:rgb(209, 8, 8);
                }
            }
        }
        .item-2{
            width: 50%;
            position: absolute;
            bottom: 10px;
            right: 0;
            &>div{
                display: inline-block;
                width: 80%;
                  .btns {
                      line-height: 30px;
                      vertical-align: baseline;
                      position: absolute;
                      right: 20px;
                      bottom: 0;;
                      button {
                          width: 30px;
                          height: 30px;
                          border: 0;
                          border-radius: 3px;
                          line-height: 30px;
                          background-color: rgb(243, 240, 240);
                      }

                      .counting {
                          display: inline-block;
                          width: 30px;
                          height: 30px;
                          text-align: center;
                          line-height: 30px;
                          background-color: rgb(243, 240, 240);
                          border-radius: 3px;
                          position: relative;
                          top: -1px;
                          margin: 0 2px;
                      }
                  }
            }
            
        }
    }
    input[name="button"]+label::before {
        /*设置label标签的伪元素*/
        content: "\a0";
        /*不换行空格*/
        display: inline-block;
        width: 20px;
        height: 20px;
        color: #fff;
        font-size: 14px;
        border-radius: 50%;
        border: 1px solid rgb(233, 231, 231);
    }
    /*选定时*/
    input[name="button"]:checked+label::before {
        content: "\2714";
        /*√*/
        text-align: center;
        border-radius: 50%;
        background-color: rgb(240, 53, 53);
    }

    /*取消默认框*/
    input[name="button"] {
        display: none;
    }

    .footer{
        width: 100%;
        height: 8%;
        line-height: 25px;
        background-color: #fff;
        position: fixed;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        padding:10px 20px;
        box-sizing: border-box;

        .f-left{
            line-height: 30px;
            text-align: center;
            label{
                line-height: 23px;
            }
            span{
                font-size: 18px;
                margin-left: 5px;
            }
        }
        .f-right{
            :nth-child(1){
                display: inline-block;
                height: 20px;
                line-height: 15px;
                font-size: 14px;
                font-weight: bold;
                vertical-align: middle;
            }
            :nth-child(2){
                font-size: 20px;
                color: rgb(209, 8, 8);
                // vertical-align: top;
            }
            :nth-child(3){
                width: 100px;
                height: 35px;
                border: 0;
                margin-left:10px;
                border-radius: 20px;
                color: #fff;
                background-color: rgb(209, 8, 8);
            }
        }
    }
}

